import { Mongoose } from 'mongoose';
import { AppConfigContainer } from '../lib/utils/app.config';
import { MicroframeworkLoader, MicroframeworkSettings } from "microframework";

export const MongoLoader: MicroframeworkLoader = (settings: MicroframeworkSettings | undefined) => {

    new Mongoose().connect(AppConfigContainer.get('mongo_url'));

}